function CMD(x)
% This function switches the programme to commandwindow mode.
% Variable x should not be used.
% If you were looking for commandprompt, enter 'debug' when prompted in
% LoadSMILES

%% Code
if exist('x','var')==1 % We want Commandwindow MODE... to be shown in some cases
    disp('Commandwindow MODE...')
end
pause(0.5) %Pause to simulate a slow PC ;)
inputstr = input('[Q to quit] ~ Please enter the SMILES notation: ', 's'); 
% asks for user input...

switch inputstr
    case {'q','Q'} % shut down command
        loadPaths('unload') % All paths should be unloaded on exit...
        rmpath('.\Core\Drivers') % ... With drivers being the last one to unload
        disp('Thank you for using SMILES in Matlab: Stepping it up a dimension')
    otherwise
        SMILES(inputstr); %passes on SMILES-input to CORE functions
        CMD % Runs CMD again, as a new USER input is required.
end
end